<?php

class CategoryViewModel extends ViewModel{
    protected $viewFields=array(
			'category' =>array(
				'name','cid','pid','_type'=>'left',
				),
			'type' => array(
                            'type_id',
				'name'=>'typename',
				'_on'=>'category.type_id = type.type_id'
				)
		);
}

?>
